package com.sakiko.home1.service.impl;

import com.sakiko.home1.dao.StudentDao;
import com.sakiko.home1.service.StudentService;

import java.sql.SQLException;

public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    // 属性赋值调用 setXxx  ref => 引用类型 ref => 形参 非引用类型 SetXxx -> Xxx就是属性名
    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public void findList() throws SQLException {
        studentDao.queryAll();
    }
}
